from collections import namedtuple
from pydantic import BaseModel
from typing import Union


class RegisterParam(BaseModel):
    mobile: str
    password: str


# class UserInfo(BaseModel):
#     sub: str
#     uid: str
#     exp: str

UserInfo = namedtuple("UserInfo", ["username", "user_id", "tenant_id", "e_id"])
